<div class="container-fluid" style="margin-top: 10px;">
    <div class="row">
            <form id="landAlterForm" action="addLandAlter" method="post">
            {:form('select',['title'=>'变动土地','name'=>'LAND_NO','list'=>$landList,'key'=>'LAND_NO','field'=>'LAND_NAME'])}
            {:form('select',['title'=>'变动类型','name'=>'ALTER_TYPE_ID','list'=>$alterList,'key'=>'ALTERTYPE_ID','field'=>'ALTERTYPE'])}
            {:line()}
            {:form('date',['title'=>'开始日期','name'=>'ALTER_DATE'])}
            {:form('date',['title'=>'结束日期','name'=>'STOP_DATE'])}
            {:line()}
            {:form('text',['title'=>'变动数量','name'=>'RELEVANT_SIZE'])}
            {:form('text',['title'=>'所得收益','name'=>'ALL_FEE'])}
            {:form('text',['title'=>'经手人','name'=>'WORK_PERSON'])}
            {:form('text',['title'=>'批准单位','name'=>'PASS_DEPART'])}
            {:form('text',['title'=>'批准文号','name'=>'PASS_NO'])}
            {:form('text',['title'=>'批准人','name'=>'PASS_PERSON'])}
            {:form('text',['title'=>'收购单位','name'=>'RELEVANT_DEPART','col'=>'col-sm-12'])}
            {:form('text',['title'=>'备注','name'=>'REMARK','col'=>'col-sm-12'])}
            {:line()}
            {:form('text',['title'=>'制单人','disable'=>'disabled','value'=>$Think.session.user_name])}
            {:form('text',['title'=>'制单时间','disable'=>'disabled','value'=>date('Y-m-d')])}
            <div class="col-sm-12" style="margin-top: 10px;text-align: center">
                <button id="addButton" class="btn btn-info" type="button">新增</button>
                <button class="btn btn-default" type="reset">重置</button>
            </div>
        </form>
    </div>
</div>

<script>

    $(function () {

        $("#addButton").on('click',function () {
            layer.confirm('确认新增土地变动吗？',{icon:3},function (index) {
                layer.close(index);
                ajaxSubmit($("#landAlterForm"),function (data) {
                    parent.refreshTable();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                });
            });
        });

    });

</script>